Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass kwargs to json.dumps in singer.format_message #99

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jlujan-omg
Copy link

Allow configuring json encoder by passing kwargs through
to json.dumps in singer.format_message. Use case is passing data
from pandas.DataFrame containing NaN to encode as null

Allow configuring json encoder by passing kwargs through
to json.dumps in singer.format_message. Use case is passing data
from pandas.DataFrame containing NaN to encode as `null`
@cmerrick
Copy link
Contributor

Hi @jlujan-omg, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

@cmerrick
Copy link
Contributor

You did it @jlujan-omg!

Thank you for signing the Singer Contribution License Agreement.

@kulte
Copy link

kulte commented Sep 5, 2019

When will this be merged, @cmerrick? This is very important as currently (as just one example) anything which needs to write a RecordMessage in non-ASCII is not possible.

@abij
Copy link

abij commented Mar 30, 2020

The package version updates are unrelated and therefore should be excluded.

And a test would be nice to proof that is works + better coverage.
A non-ASCII test is useful, setting the json.dumps(..., ensure_ascii=False).
I think this setting should default to False if you ask me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants